package com.gitee.yangtianle.redisson.seckill.exception;

/**
 * @author tianle.ytl
 * @date 2018/9/19
 */
public class RedissonLimitException extends RuntimeException {

    private Integer code;
    private String msg;

    public RedissonLimitException(String msg) {
        this.msg = msg;
    }

    public RedissonLimitException(String message, String msg) {
        super(message);
        this.msg = msg;
    }

    public RedissonLimitException(String message, Throwable cause, String msg) {
        super(message, cause);
        this.msg = msg;
    }

    public RedissonLimitException(Throwable cause, String msg) {
        super(cause);
        this.msg = msg;
    }

    public RedissonLimitException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, String msg) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
